﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BanVeXemPhim_Presentation
{
    public class XuatChieuControl
    {
        private XuatChieuDAO _xuatChieuDao;

        public XuatChieuDAO XuatChieuDao
        {
            get { return _xuatChieuDao; }
            set { _xuatChieuDao = value; }
        }
        public XuatChieuControl()
        {
            _xuatChieuDao=new XuatChieuDAO();
        }
        public XuatChieuDTO[] LayDanhSachXuatChieuTheoPhim(PhimDTO phim)
        {
            return _xuatChieuDao.DanhSachLichChieuTheoPhim(phim);
        }


        public void ThemXuatChieu(XuatChieuDTO xuatChieuDto)
        {
            _xuatChieuDao.ThemXuatChieu(xuatChieuDto);
        }

        public XuatChieuDTO[] DanhSachXuatChieuTheoTuan(LichChieuTuanDTO lichChieuTuanDto)
        {
            return _xuatChieuDao.DanhSachXuatChieuTheoTuan(lichChieuTuanDto);
        }

        public void HuyXuatChieu(XuatChieuDTO xuatChieuDTO)
        {
            _xuatChieuDao.HuyXuatChieu(xuatChieuDTO);
        }

        public void CapNhatXuatChieu(XuatChieuDTO xuatChieuDto)
        {
            _xuatChieuDao.CapNhatXuatChieu(xuatChieuDto);
        }
    }
}
